import { createSSRApp } from "vue";
import App from "./App.vue";
import CustomInput from './components/custom-input.vue'
import CompanyJob from './components/company-job.vue'
import CustomEmpty from './components/custom-empty.vue'
import CustomTab from './components/custom-tab.vue'
import store from './store/index'
import * as Pinia from 'pinia';

// #ifdef H5
import './utils/cloud_sdk_init'
// #endif


// import './utils/basic.ts'
// import './utils/interface.ts'
// import './utils/array.ts'
// import './utils/generic.ts'
// import './utils/generic_tools.ts'
export function createApp() {
  const app = createSSRApp(App);
  app.use(Pinia.createPinia());
  app.use(store)
  app.component('custom-input',CustomInput)  //全局挂载组件
  app.component('company-job',CompanyJob)  //全局挂载组件
  app.component('custom-empty',CustomEmpty)  //全局挂载组件
  app.component('custom-tab',CustomTab)  //全局挂载组件
  
  return {
    app,
	Pinia,
  };
}
